package com.ruoyi.production.mapper;

import com.ruoyi.production.domain.vo.CheckOutVo;
import com.ruoyi.production.domain.vo.ProductionExitVo;
import com.ruoyi.stock.domain.WarehouseIn;
import com.ruoyi.stock.domain.WarehouseInInfo;

import java.util.List;

/**
 * @Author: YwaiX
 * @Version: 1.0
 * @Date: Created in 2024-11-04 10:37:51
 * @Description:
 */
public interface ProductionExitMapper {

    /**
     * 查询生产退料记录
     * @return
     */
    List<ProductionExitVo> list();

    /**
     * 获取出库单id
     * @param productionNo
     * @return
     */
    Integer selectWarehouseOutId(String productionNo);

    /**
     * 根据出库单id查找对应需要退的物料
     * @param warehouseOutId
     * @return
     */
    List<CheckOutVo> selectWarehouseOutInfo(Integer warehouseOutId);

    /**
     * 添加退料入库单信息
     * @param warehouseIn
     */
    void insertWarehouseIn(WarehouseIn warehouseIn);

    /**
     * 添加退料入库详情
     * @param list
     * @return
     */
    Integer insertWarehouseInInfo(List<WarehouseInInfo> list);
}
